<?python
if tag:
	submit_url=url('/tag_edit/%s/' % tag.id)
else:
	submit_url=url('/tag_add')
?>

<form xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:py="http://genshi.edgewall.org/"
	  class="tag" action="${submit_url}" method="post">
		<p>
		<label for="title">Name:</label><br/>
		
		  <input type="text" id="title" name="title"/>
		  <span py:if="'title' in errors" class="error">${errors.title}</span>
		</p>
		
		<span id="description_row" style="display: none">
		<p>
		<label for="description">Description:</label>
		<TEXTAREA rows="10" cols="59" id="description" name="description" ></TEXTAREA>
		</p>
		</span>
		
		<p>
		<input type="submit" value="Submit" />
		<input type="submit" name="cancel" value="Cancel" />
		</p>
</form>

